import PersonalCentre from '@/pages/index/body/personalCentre/PersonalCentre'
import personalInterface from '@/router/index/personalCentre/personalInterface/personalInterface'
import profilePhoto from '@/router/index/personalCentre/profilePhoto/profilePhoto'
import accountSecurity from '@/router/index/personalCentre/accountSecurity/accountSecurity'

const personalCentre = [
  {
    path: '/personalCentre',
    name: 'PersonalCentre',
    component: PersonalCentre,
    redirect: '/personalCentre/personalInterface',
    meta: {
      requiredAuth: true
    },
    children: [
      ...personalInterface,
      ...profilePhoto,
      ...accountSecurity
    ]
  }
]

export default personalCentre
